<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Bootstrap Website!</title>

    <meta name="description" content="Source code generated using layoutit.com">
    <meta name="author" content="LayoutIt!">

    <link href="{$static_path}/css/bootstrap.min.css" rel="stylesheet">
    <link href="{$static_path}/css/style.css" rel="stylesheet">

  </head>
  <body>
  <nav class="navbar navbar-default" role="navigation">
        <div class="navbar-header">
           
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
             <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
          </button> <a class="navbar-brand" href="#">Rui</a>
        </div>
        
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
          <ul class="nav navbar-nav">
            <li class="active">
              <a href="/">Home</a>
            </li>
            <li>
              <a href="{$webroot}/index.php/index/index/weibo">Weibo</a>
            </li>
            <li>
              <a href="{$webroot}/index.php/index/index/noonpay">noonpay</a>
            </li>
            <li class="dropdown">
               <a href="#" class="dropdown-toggle" data-toggle="dropdown">More<strong class="caret"></strong></a>
              <ul class="dropdown-menu">
                <li>
                  <a href="#">Action</a>
                </li>
                <li>
                  <a href="#">Another action</a>
                </li>
                <li>
                  <a href="#">Something else here</a>
                </li>
                <li class="divider">
                </li>
                <li>
                  <a href="#">Separated link</a>
                </li>
                <li class="divider">
                </li>
                <li>
                  <a href="#">One more separated link</a>
                </li>
              </ul>
            </li>
          </ul>
          <form class="navbar-form navbar-left" role="search">
            <div class="form-group">
              <input class="form-control" type="text" id='newweibo' />
            </div> 
            <button type="button" class="btn btn-default weibo-send">
              Submit
            </button>
          </form>
          <ul class="nav navbar-nav navbar-right">
            {eq name="auth_status" value="1"}
            <li>
              <a href="#">Link</a>
            </li>
            {/eq}
            {switch name="auth_status" }
              {case value="0" break="1"}
                <li>
                  <a href="index.php/index/index/auth">登陆微博</a>
                </li>
              {/case}
              {default /}
                <li>
                  <a id="modal-147530" href="#modal-container-147530" role="button" class="btn btn-default sync-weibo" data-toggle="modal">同步微博</a>
                </li>
            {/switch}
            <li class="dropdown">
               <a href="#" class="dropdown-toggle" data-toggle="dropdown">tools<strong class="caret"></strong></a>
              <ul class="dropdown-menu">
                <li>
                  <a onclick="SyncWeibo();">Sync Weibo</a>
                </li>
                <li>
                  <a href="#">Another action</a>
                </li>
                <li>
                  <a href="#">Something else here</a>
                </li>
                <li class="divider">
                </li>
                <li>
                  <a href="#">Separated link</a>
                </li>
              </ul>
            </li>
          </ul>
        </div>
        
      </nav>

<div class="container-fluid">
  <div class="row">
    <div class="col-md-12">
      <div class="modal fade" id="modal-container-147530" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="modal-header">
               
              <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                ×
              </button>
              <h4 class="modal-title" id="myModalLabel">
                Modal title
              </h4>
            </div>
            <div class="modal-body" id="modulecontent">
              ...
            </div>
            <div class="modal-footer">
               
              <button type="button" class="btn btn-default" data-dismiss="modal">
                Close
              </button> 
              <button type="button" class="btn btn-primary">
                Save changes
              </button>
            </div>
          </div>
          
        </div>
        
      </div>
      
    </div>
  </div>
</div>